package com.openbravo.data.loader;

import com.openbravo.basic.BasicException;

public abstract class SentenceExecTransaction
  implements SentenceExec
{
  private Session m_s;

  public SentenceExecTransaction(Session paramSession)
  {
    this.m_s = paramSession;
  }

  public final int exec()
    throws BasicException
  {
    return exec((Object)null);
  }

  public final int exec(Object[] paramArrayOfObject)
    throws BasicException
  {
    return exec((Object)paramArrayOfObject);
  }

  public final int exec(final Object paramObject)
    throws BasicException
  {
	  Transaction   local1 = new Transaction(this.m_s )
    {
      public Integer transact()
        throws BasicException
      {
        Object val$params=paramObject;
		return Integer.valueOf(SentenceExecTransaction.this.execInTransaction(val$params));
      }
    };
    return ((Integer)local1.execute()).intValue();
  }

  protected abstract int execInTransaction(Object paramObject)
    throws BasicException;
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.data.loader.SentenceExecTransaction
 * JD-Core Version:    0.6.0
 */